home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 723 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: laraby.tiac.net!tbutler
  2. From: tbutler@laraby.tiac.net (Tim Butler)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: start array at k, not 0
  5. Date: 8 Jan 96 23:00:00 GMT
  6. Organization: The Internet Access Company
  7. Message-ID: <tbutler.821142000@laraby.tiac.net>
  8. References: <Pine.OSF.3.91.960104095358.22268B-100000@io.UWinnipeg.ca> <820787486snz@genesis.demon.co.uk> <Pine.OSF.3.91.960105091211.2861B-100000@io.UWinnipeg.ca> <4cpdt3$3b5@newdelph.cig.mot.com> <30f06d21.167303296@nntp.ix.netcom.com>
  9. NNTP-Posting-Host: laraby.tiac.net
  10. X-Newsreader: NN version 6.5.0 #1 (NOV)
  11.  
  12. miker3@ix.netcom.com (Mike Rubenstein) writes:
  13. [ Numerical Recipes method of array indexing referenced ]
  14. ....
  15. :It's unfortunate that the authors of this book didn't bother to learn
  16. :C before writing it.  As anyone who has read the FAQ [6.13] knows,
  17. :this results in undefined behavior.  
  18. ...
  19.  
  20. They have addressed that in the second edition. To retain the ability
  21. to start indexing at one, they "waste" that first element. They
  22. allocate one element extra.
  23.  
  24. --
  25. tim butler
  26. tbutler@tiac.net
  27.  
  28.